<?php
/**
 * Created by PhpStorm.
 * User: x
 * Date: 2018/10/20
 * Time: 11:47
 */

namespace app\common\model;

use think\Model;
use think\Db;
class Wxurls extends Model{
    public function findPjname($id){
        $result = Db::name('wxurls')->where('id',$id)->find();
        if($result){
            return $result;
        }else{
            return false;
        }
    }

    public function saveDomain($data){
        $result = Db::name('wxurls')->insert($data);
        if($result){
            return $result;
        }else{
            return false;
        }
    }

    protected function setSealTimeAttr($value){
        return date('Y:m:d H:i:s',$value);
    }
}